package com.mofang.powerdekorhelper.adapter;

import android.content.Context;

import com.mofang.powerdekorhelper.R;
import com.mofang.powerdekorhelper.base.recycleview.BaseRecycleViewAdapter;
import com.mofang.powerdekorhelper.base.recycleview.BaseViewHolder;
import com.mofang.powerdekorhelper.model.NewCustomer;

import java.util.List;

/**
 * Created by luofei on 2017/9/5 0005.
 * 说明：
 */

public class NewCustomerListAdapter extends BaseRecycleViewAdapter {

    public NewCustomerListAdapter(List<?> data, Context mContext, int layoutId) {
        super(data, mContext, layoutId);
    }

    @Override
    protected <T> void convert(BaseViewHolder holder, T bean, int position) {

        NewCustomer customer = (NewCustomer) bean;
        holder.setText(R.id.customer_name_tv, customer.getName());
        holder.setText(R.id.customer_phone_tv, customer.getPhone());
    }
}
